<!DOCTYPE html>

<html lang="en" data-content_root="../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

  <title>CSharpUtilities &mdash; CMake 4.1.1 Documentation</title>

    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a2c47e09" />
    <link rel="stylesheet" type="text/css" href="../_static/cmake.css?v=4d06bd55" />
    
    <script src="../_static/documentation_options.js?v=e6a937a4"></script>
    <script src="../_static/doctools.js?v=9bcbadda"></script>
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
    
    <link rel="icon" href="../_static/cmake-favicon.ico"/>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="CTest" href="CTest.html" />
    <link rel="prev" title="CPackIFWConfigureFile" href="CPackIFWConfigureFile.html" />
 

  </head><body>
    <input id="sidebar-check" type="checkbox" />
    <label id="sidebar-overlay" for="sidebar-check"></label>



    <div class="related relbar1" role="navigation" aria-label="Related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="CTest.html" title="CTest"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="CPackIFWConfigureFile.html" title="CPackIFWConfigureFile"
             accesskey="P">previous</a> |</li>
  <li>
    <label class="sidebar-toggle" for="sidebar-check"></label>
  </li>
  <li class="rootlink">
    <img src="../_static/cmake-logo-16.png" width="16" height="16" alt=""/>
    <a href="https://cmake.org/">CMake 4.1.1</a>
    <span class="reldelim1"> &#187;</span>
  </li>
  <li>
    <a href="../index.html">Documentation</a> &#187;
  </li>

          <li class="nav-item nav-item-1"><a href="../manual/cmake-modules.7.html" accesskey="U">cmake-modules(7)</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">CSharpUtilities</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="csharputilities">
<span id="module:CSharpUtilities"></span><h1>CSharpUtilities<a class="headerlink" href="#csharputilities" title="Link to this heading">¶</a></h1>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.8.</span></p>
</div>
<p>This utility module is intended to simplify the configuration of CSharp/.NET
targets and provides a collection of commands for managing CSharp targets
with <a class="reference internal" href="../manual/cmake-generators.7.html#visual-studio-generators"><span class="std std-ref">Visual Studio Generators</span></a>, version 2010 and newer.</p>
<p>Load this module in a CMake project with:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">include(</span><span class="nb">CSharpUtilities</span><span class="nf">)</span>
</pre></div>
</div>
<section id="commands">
<h2>Commands<a class="headerlink" href="#commands" title="Link to this heading">¶</a></h2>
<p>This module provides the following commands:</p>
<p class="rubric">Main Commands</p>
<ul class="simple">
<li><p><span class="target" id="index-0-command:csharp_set_windows_forms_properties"></span><a class="reference internal" href="#command:csharp_set_windows_forms_properties" title="csharp_set_windows_forms_properties"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_set_windows_forms_properties()</span></code></a></p></li>
<li><p><span class="target" id="index-0-command:csharp_set_designer_cs_properties"></span><a class="reference internal" href="#command:csharp_set_designer_cs_properties" title="csharp_set_designer_cs_properties"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_set_designer_cs_properties()</span></code></a></p></li>
<li><p><span class="target" id="index-0-command:csharp_set_xaml_cs_properties"></span><a class="reference internal" href="#command:csharp_set_xaml_cs_properties" title="csharp_set_xaml_cs_properties"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_set_xaml_cs_properties()</span></code></a></p></li>
</ul>
<p class="rubric">Helper Commands</p>
<ul class="simple">
<li><p><span class="target" id="index-0-command:csharp_get_filename_keys"></span><a class="reference internal" href="#command:csharp_get_filename_keys" title="csharp_get_filename_keys"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_get_filename_keys()</span></code></a></p></li>
<li><p><span class="target" id="index-0-command:csharp_get_filename_key_base"></span><a class="reference internal" href="#command:csharp_get_filename_key_base" title="csharp_get_filename_key_base"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_get_filename_key_base()</span></code></a></p></li>
<li><p><span class="target" id="index-0-command:csharp_get_dependentupon_name"></span><a class="reference internal" href="#command:csharp_get_dependentupon_name" title="csharp_get_dependentupon_name"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_get_dependentupon_name()</span></code></a></p></li>
</ul>
<section id="main-commands">
<h3>Main Commands<a class="headerlink" href="#main-commands" title="Link to this heading">¶</a></h3>
<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_set_windows_forms_properties">
<span class="sig-name descname"><span class="pre">csharp_set_windows_forms_properties</span></span><a class="headerlink" href="#command:csharp_set_windows_forms_properties" title="Link to this definition">¶</a></dt>
<dd><p>Sets source file properties for use of Windows Forms:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_set_windows_forms_properties(</span><span class="p">[</span><span class="nv">&lt;files&gt;...</span><span class="p">]</span><span class="nf">)</span>
</pre></div>
</div>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;files&gt;...</span></code></dt><dd><p>A list of zero or more source files which are relevant for setting the
<span class="target" id="index-0-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_&lt;tagname&gt;</span></code></a> source file properties. This typically
includes files with <code class="docutils literal notranslate"><span class="pre">.cs</span></code>, <code class="docutils literal notranslate"><span class="pre">.resx</span></code>, and <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> extensions.</p>
</dd>
</dl>
<p>Use this command when a CSharp target in the project uses Windows Forms.</p>
<p>This command searches in the provided list of files for pairs of related
files ending with <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> (<em>designer</em> files) or <code class="docutils literal notranslate"><span class="pre">.resx</span></code>
(<em>resource</em> files).  For each such file, a corresponding base <code class="docutils literal notranslate"><span class="pre">.cs</span></code>
file is searched (with the same base name).  When found, the
<span class="target" id="index-1-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_&lt;tagname&gt;</span></code></a> source file properties are set as follows:</p>
<dl class="simple">
<dt>For the <strong>.cs</strong> file:</dt><dd><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_SubType</span> <span class="pre">&quot;Form&quot;</span></code></p></li>
</ul>
</dd>
<dt>For the <strong>.Designer.cs</strong> file (if it exists):</dt><dd><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;cs-filename&gt;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DesignTime</span> <span class="pre">&quot;&quot;</span></code> (tag is removed if previously defined)</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_AutoGen</span> <span class="pre">&quot;&quot;</span></code> (tag is removed if previously defined)</p></li>
</ul>
</dd>
<dt>For the <strong>.resx</strong> file (if it exists):</dt><dd><ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_RESOURCE_GENERATOR</span> <span class="pre">&quot;&quot;</span></code> (tag is removed if previously defined)</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;cs-filename&gt;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_SubType</span> <span class="pre">&quot;Designer&quot;</span></code></p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_set_designer_cs_properties">
<span class="sig-name descname"><span class="pre">csharp_set_designer_cs_properties</span></span><a class="headerlink" href="#command:csharp_set_designer_cs_properties" title="Link to this definition">¶</a></dt>
<dd><p>Sets source file properties for <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> files depending on
sibling filenames:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_set_designer_cs_properties(</span><span class="p">[</span><span class="nv">&lt;files&gt;...</span><span class="p">]</span><span class="nf">)</span>
</pre></div>
</div>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;files&gt;...</span></code></dt><dd><p>A list of zero or more source files which are relevant for setting the
<span class="target" id="index-2-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_&lt;tagname&gt;</span></code></a> source file properties.  This typically
includes files with <code class="docutils literal notranslate"><span class="pre">.resx</span></code>, <code class="docutils literal notranslate"><span class="pre">.settings</span></code>, and <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code>
extensions.</p>
</dd>
</dl>
<p>Use this command, if the CSharp target does <strong>not</strong> use Windows Forms
(for Windows Forms use <span class="target" id="index-1-command:csharp_set_windows_forms_properties"></span><a class="reference internal" href="#command:csharp_set_windows_forms_properties" title="csharp_set_windows_forms_properties"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_set_windows_forms_properties()</span></code></a>
instead).</p>
<p>This command searches through the provided list for files ending in
<code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> (<em>designer</em> files).  For each such file, it looks for
sibling files with the same base name but different extensions.  If a
matching file is found, the appropriate source file properties are set on
the corresponding <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> file based on the matched extension:</p>
<p>If match is <strong>.resx</strong> file:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_AutoGen</span> <span class="pre">&quot;True&quot;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DesignTime</span> <span class="pre">&quot;True&quot;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;resx-filename&gt;</span></code></p></li>
</ul>
<p>If match is <strong>.cs</strong> file:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;cs-filename&gt;</span></code></p></li>
</ul>
<p>If match is <strong>.settings</strong> file:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_AutoGen</span> <span class="pre">&quot;True&quot;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DesignTimeSharedInput</span> <span class="pre">&quot;True&quot;</span></code></p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;settings-filename&gt;</span></code></p></li>
</ul>
</dd></dl>

<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Because the source file properties of the <code class="docutils literal notranslate"><span class="pre">.Designer.cs</span></code> file are set
according to the found matches and every match sets the
<span class="target" id="index-3-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span></code></a>
source file property, there should only be one match for
each <code class="docutils literal notranslate"><span class="pre">Designer.cs</span></code> file.</p>
</div>
<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_set_xaml_cs_properties">
<span class="sig-name descname"><span class="pre">csharp_set_xaml_cs_properties</span></span><a class="headerlink" href="#command:csharp_set_xaml_cs_properties" title="Link to this definition">¶</a></dt>
<dd><p>Sets source file properties for use of Windows Presentation Foundation (WPF)
and XAML:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_set_xaml_cs_properties(</span><span class="p">[</span><span class="nv">&lt;files&gt;...</span><span class="p">]</span><span class="nf">)</span>
</pre></div>
</div>
<p>Use this command, if the CSharp target uses WPF/XAML.</p>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;files&gt;...</span></code></dt><dd><p>A list of zero or more source files which are relevant for setting the
<span class="target" id="index-4-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_&lt;tagname&gt;</span></code></a> source file properties.  This typically
includes files with <code class="docutils literal notranslate"><span class="pre">.cs</span></code>, <code class="docutils literal notranslate"><span class="pre">.xaml</span></code>, and <code class="docutils literal notranslate"><span class="pre">.xaml.cs</span></code> extensions.</p>
</dd>
</dl>
<p>This command searches the provided file list for files ending with
<code class="docutils literal notranslate"><span class="pre">.xaml.cs</span></code>.  For each such XAML code-behind file, a corresponding
<code class="docutils literal notranslate"><span class="pre">.xaml</span></code> file with the same base name is searched.  If found, the
following source file property is set on the <code class="docutils literal notranslate"><span class="pre">.xaml.cs</span></code> file:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span> <span class="pre">&lt;xaml-filename&gt;</span></code></p></li>
</ul>
</dd></dl>

</section>
<section id="helper-commands">
<h3>Helper Commands<a class="headerlink" href="#helper-commands" title="Link to this heading">¶</a></h3>
<p>These commands are used by the above main commands and typically aren't
used directly:</p>
<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_get_filename_keys">
<span class="sig-name descname"><span class="pre">csharp_get_filename_keys</span></span><a class="headerlink" href="#command:csharp_get_filename_keys" title="Link to this definition">¶</a></dt>
<dd><p>Computes a normalized list of key values to identify source files
independently of relative or absolute paths given in CMake and eliminates
case sensitivity:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_get_filename_keys(</span><span class="nv">&lt;variable&gt;</span><span class="w"> </span><span class="p">[</span><span class="nv">&lt;files&gt;...</span><span class="p">]</span><span class="nf">)</span>
</pre></div>
</div>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;variable&gt;</span></code></dt><dd><p>Name of the variable in which the list of computed keys is stored.</p>
</dd>
<dt><code class="docutils literal notranslate"><span class="pre">&lt;files&gt;...</span></code></dt><dd><p>Zero or more source file paths as given to CSharp target using commands
like <span class="target" id="index-0-command:add_library"></span><a class="reference internal" href="../command/add_library.html#command:add_library" title="add_library"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_library()</span></code></a>, or <span class="target" id="index-0-command:add_executable"></span><a class="reference internal" href="../command/add_executable.html#command:add_executable" title="add_executable"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">add_executable()</span></code></a>.</p>
</dd>
</dl>
<p>This command canonicalizes file paths to ensure consistent identification
of source files.  This is useful when source files are added to a target
using different path forms.  Without normalization, CMake may treat paths
like <code class="docutils literal notranslate"><span class="pre">myfile.Designer.cs</span></code> and
<code class="docutils literal notranslate"><span class="pre">${CMAKE_CURRENT_SOURCE_DIR}/myfile.Designer.cs</span></code> as different files,
which can cause issues when setting source file properties.</p>
<p>For example, the following code will fail to set properties because the
file paths do not match exactly:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">add_library(</span><span class="nb">lib</span><span class="w"> </span><span class="nb">myfile.cs</span><span class="w"> </span><span class="o">${</span><span class="nt">CMAKE_CURRENT_SOURCE_DIR</span><span class="o">}</span><span class="na">/myfile.Designer.cs</span><span class="nf">)</span>

<span class="nf">set_source_files_properties(</span>
<span class="w">  </span><span class="nb">myfile.Designer.cs</span>
<span class="w">  </span><span class="no">PROPERTIES</span><span class="w"> </span><span class="nb">VS_CSHARP_DependentUpon</span><span class="w"> </span><span class="nb">myfile.cs</span>
<span class="nf">)</span>
</pre></div>
</div>
</dd></dl>

<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_get_filename_key_base">
<span class="sig-name descname"><span class="pre">csharp_get_filename_key_base</span></span><a class="headerlink" href="#command:csharp_get_filename_key_base" title="Link to this definition">¶</a></dt>
<dd><p>Returns the full filepath and name <strong>without</strong> extension of a key:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_get_filename_key_base(</span><span class="nv">&lt;base&gt;</span><span class="w"> </span><span class="nv">&lt;key&gt;</span><span class="nf">)</span>
</pre></div>
</div>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;base&gt;</span></code></dt><dd><p>Name of the variable with the computed base value of the <code class="docutils literal notranslate"><span class="pre">&lt;key&gt;</span></code>
without the file extension.</p>
</dd>
<dt><code class="docutils literal notranslate"><span class="pre">&lt;key&gt;</span></code></dt><dd><p>The key of which the base will be computed.  Expected to be a
uppercase full filename from <span class="target" id="index-1-command:csharp_get_filename_keys"></span><a class="reference internal" href="#command:csharp_get_filename_keys" title="csharp_get_filename_keys"><code class="xref cmake cmake-command docutils literal notranslate"><span class="pre">csharp_get_filename_keys()</span></code></a>.</p>
</dd>
</dl>
</dd></dl>

<dl class="cmake command">
<dt class="sig sig-object cmake" id="command:csharp_get_dependentupon_name">
<span class="sig-name descname"><span class="pre">csharp_get_dependentupon_name</span></span><a class="headerlink" href="#command:csharp_get_dependentupon_name" title="Link to this definition">¶</a></dt>
<dd><p>Computes a string which can be used as value for the source file property
<span class="target" id="index-5-prop_sf:VS_CSHARP_&lt;tagname&gt;"></span><a class="reference internal" href="../prop_sf/VS_CSHARP_tagname.html#prop_sf:VS_CSHARP_&lt;tagname&gt;" title="VS_CSHARP_&lt;tagname&gt;"><code class="xref cmake cmake-prop_sf docutils literal notranslate"><span class="pre">VS_CSHARP_&lt;tagname&gt;</span></code></a> with <code class="docutils literal notranslate"><span class="pre">&lt;tagname&gt;</span></code> being <code class="docutils literal notranslate"><span class="pre">DependentUpon</span></code>:</p>
<div class="highlight-cmake notranslate"><div class="highlight"><pre><span></span><span class="nf">csharp_get_dependentupon_name(</span><span class="nv">&lt;variable&gt;</span><span class="w"> </span><span class="nv">&lt;file&gt;</span><span class="nf">)</span>
</pre></div>
</div>
<dl class="simple">
<dt><code class="docutils literal notranslate"><span class="pre">&lt;variable&gt;</span></code></dt><dd><p>Name of the variable with the result value.  Value contains the name
of the <code class="docutils literal notranslate"><span class="pre">&lt;file&gt;</span></code> without directory.</p>
</dd>
<dt><code class="docutils literal notranslate"><span class="pre">&lt;file&gt;</span></code></dt><dd><p>Filename to convert for using in the value of the
<code class="docutils literal notranslate"><span class="pre">VS_CSHARP_DependentUpon</span></code> source file property.</p>
</dd>
</dl>
</dd></dl>

</section>
</section>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper">
  <div>
    <h3>Table of Contents</h3>
    <ul>
<li><a class="reference internal" href="#">CSharpUtilities</a><ul>
<li><a class="reference internal" href="#commands">Commands</a><ul>
<li><a class="reference internal" href="#main-commands">Main Commands</a></li>
<li><a class="reference internal" href="#helper-commands">Helper Commands</a></li>
</ul>
</li>
</ul>
</li>
</ul>

  </div>
  <div>
    <h4>Previous topic</h4>
    <p class="topless"><a href="CPackIFWConfigureFile.html"
                          title="previous chapter">CPackIFWConfigureFile</a></p>
  </div>
  <div>
    <h4>Next topic</h4>
    <p class="topless"><a href="CTest.html"
                          title="next chapter">CTest</a></p>
  </div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/module/CSharpUtilities.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="Related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="CTest.html" title="CTest"
             >next</a> |</li>
        <li class="right" >
          <a href="CPackIFWConfigureFile.html" title="CPackIFWConfigureFile"
             >previous</a> |</li>
  <li>
    <label class="sidebar-toggle" for="sidebar-check"></label>
  </li>
  <li class="rootlink">
    <img src="../_static/cmake-logo-16.png" width="16" height="16" alt=""/>
    <a href="https://cmake.org/">CMake 4.1.1</a>
    <span class="reldelim1"> &#187;</span>
  </li>
  <li>
    <a href="../index.html">Documentation</a> &#187;
  </li>

          <li class="nav-item nav-item-1"><a href="../manual/cmake-modules.7.html" >cmake-modules(7)</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">CSharpUtilities</a></li> 
      </ul>
    </div>

    <div class="footer" role="contentinfo">
    &#169; Copyright 2000-2025 Kitware, Inc. and Contributors.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
    </div>
<script type="text/javascript">
(function() {
  "use strict";
  const hide = () => document.getElementById("sidebar-check").checked = false;
  addEventListener("keydown", e => (e.key === "Escape") && hide());
  addEventListener("click", e => (e.target.tagName === "A") && hide());
  addEventListener("hashchange", hide)
})();
</script>
  </body>
</html>